package com.csb.config;

import org.springframework.stereotype.Component;

@Component
public class MyConstants {
    //资产故障
    public static final int ASSET_IS_BREAK_YES = 1;
    //资产没有故障
    public static final int ASSET_IS_BREAK_NO = 0;
    //资产的状态
    //待用
    public static final int ASSET_ASSTATE_NOUSE = 1;
    //待用
    public static final int ASSET_ASSTATE_APPLYING = 2;
    //使用
    public static final int ASSET_ASSTATE_USING = 3;
    //报废
    public static final int ASSET_ASSTATE_WORTHLESS = 4;

    //申请是否同意
    //初始
    public static final int APPLY_INIT = 1;
    //同意
    public static final int APPLY_YES = 2;
    //不同意
    public static final int APPLY_NO = 3;

    //业务类型
    //申请
    public static final int BUSINESS_TYPE_APPLY = 1;
    //归还
    public static final int BUSINESS_TYPE_BACK = 0;

    // 注册账号
    // 申请成功
    public static final int USER_LOGIN_YES = 1;
    // 申请中
    public static final int USER_LOGIN_NO = 0;

    // 一览
    // 显示
    public static final int USER_SHOW_YES = 1;
    // 不显示
    public static final int USER_SHOW_NO = 0;

    // 用户权限
    // 超级管理员
    public static final int USER_ROLE_ADMIN = 1;
    // 管理员
    public static final int USER_ROLE_MANAGER = 2;
    // 用户
    public static final int USER_ROLE_USER = 3;

    // 角色
    public static final String ROLE_ADMIN = "admin";
    public static final String ROLE_MANAGER = "manager";

}
